<html> 
	<head> 
		<title>a test for selection object</title> 
	</head> 
	<body> 
		<script language='javascript'> 
			function test(){  
				var textSelection = document.selection.createRange();  
				textSelection.execCommand('Bold');  
			}  
		</script> 
		<div onmouseup = "javascript:test();">select me.... , I will be bold..</div> 
	</body> 
</html>   
